﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace DosTexPrj.Core.Models
{
    [DataContract]
    public class Customer : EntityBaseWithIntIDType
    {
        [DataMember]
        public virtual string CustomerName { get; set; }

        [DataMember]
        public virtual string Address { get; set; }

        [DataMember]
        public virtual string PhoneNumber { get; set; }

        [DataMember]
        public virtual IList<Order> Orders { get; set; }

        public Customer()
        {
            this.Orders = new List<Order>();
        }
    }
}